@extends('admin.common.base-master')

@section('html-head')
    <link href="{{url('css/admin/pagenum.css')}}" rel="stylesheet" />

    <link rel="stylesheet" href="{{url('css/admin/jquery-ui.css')}}">
    <script type="text/javascript" src="{{url('css/admin/jquery-ui.min.js')}}"></script>
    <style>
        .sx{padding: 10px}
        .sx-btn{width: 64px;height: 30px;background-color: #4dbcd3;color: #fff;border: #4dbcd3;border-radius: 7%;}
    </style>
@endsection

@section('html-body')
    <!-- content start -->
    <div id="content">
        <!-- cur-position start -->
        <div id="cur-position">
            <span class="tit">当前位置：</span>
            <a href="#">活动管理</a>
            <em></em>
            <a href="{{route('Admin.Home.userBargainInitiateList')}}">用户发起的砍价</a>
            <em></em>
            <a href="#">砍价助力人数</a>
        </div>

        @include('admin.common.activity-header')
        <!-- cur-position end -->


        <div class="table-box">
            <table class="table">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>用户昵称</th>
                    <th>用户头像</th>
                    <th>参与时间</th>
                    <th>砍掉的价格</th>
                </tr>
                </thead>
                <tbody>
                @if(count($activityBargainJoins) > 0)
                    @foreach($activityBargainJoins as $a)
                        <tr id="admin_{{$a->id}}">
                            <td>{{$a->id}}</td>
                            <td>{{$a->nickname}}</td>
                            <td><img src="{{$a->photo_url}}" alt="" width="40px"></td>
                            <td>{{$a->participate_time}}</td>
                            <td>{{$a->bargain_money}}</td>
                        </tr>
                    @endforeach
                @endif
                </tbody>
            </table>
            <?php echo $activityBargainJoins->appends(['id' => $abi_id])->render(); ?>
        </div>
    </div>
    <!-- content end -->

@endsection